Repository navigation
console: capability overrides for aggregated models - #602
Conversation
- Model pool editor can pin context window, max output, reasoning levels and default effort for an aggregated model; /v1/models advertises exactly those values. - Aggregations without overrides advertise the conservative intersection of their members (smallest window and output, shared reasoning levels) instead of the first member's numbers, and members resolve by provider and region rather than by model name alone. - A request that carries no reasoning intent uses the aggregation default level; each member provider still maps and clamps it to what its own model allows.
caigee-cmd
left a comment
There was a problem hiding this comment.
Additive migration 034 only appends columns; shipped SQL is untouched. Pools without overrides advertise the intersection of their members (smallest window and output, shared reasoning levels) instead of the first member's numbers, and members resolve by provider and region. An aggregation default reasoning level fills only a request that carried none; each member still clamps it.
|
合入。迁移只在末尾追加了 注意:以前按第一个成员的上限来估算请求大小的客户端,会看到交集后的数字,直到在控制台里设上覆盖值。 |
|
合入。迁移只在末尾追加了 注意:以前按第一个成员的上限来估算请求大小的客户端,会看到交集后的数字,直到在控制台里设上覆盖值。 |
console: capability overrides for aggregated models
Change
/v1/modelsadvertises exactly those overrides when set. Without overrides an aggregation advertises the conservative intersection of its members (smallest window and output, shared reasoning levels) instead of the first member's numbers.internal/store/migrations.gofor the stored capability columns (backup/restore covers them)./v1/modelsand the key UI locks provider selection to the aggregation (supporting fix; without it the capability tests cannot resolve a pool member).Behavior to review
/v1/modelsadvertises for pools that previously copied the first member's limits. Existing pools keep working, but a client that sized requests from the old numbers will see the intersection until the operator sets overrides.Verification
go test ./...passes.go build ./...passes.cd frontend && npm run syncregeneratedinternal/webui/staticfor the editor changes.